import request from '@/utils/request'

export function getBlogList(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/getList',
    method: 'post',
    data: params
  })
}

export function addBlog(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/add',
    method: 'post',
    data: params
  })
}

export function uploadLocalBlog(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/uploadLocalBlog',
    method: 'post',
    data: params
  })
}

export function uploadWordpressBlog(params){
  return request({
    url:process.env.ADMIN_API + '/blogSpider/uploadWordpressBlog',
    method: 'post',
    data: params
  })
}


export function editBlog(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/edit',
    method: 'post',
    data: params
  })
}

export function editBatchBlog(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/editBatch',
    method: 'post',
    data: params
  })
}

export function deleteBlog(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/delete',
    method: 'post',
    data: params
  })
}

export function deleteBatchBlog(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSpider/deleteBatch',
    method: 'post',
    data: params
  })
}
